#if !defined(AFX_DLGAPPROXGPOLYGON_H__1FBBC9D9_73B2_4250_A561_F5C3D12D6970__INCLUDED_)
#define AFX_DLGAPPROXGPOLYGON_H__1FBBC9D9_73B2_4250_A561_F5C3D12D6970__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// dlgapproxgpolygon.h : header file
//
#include "resource.h"
#include "afxcmn.h"
#include "XMLDialog.h"

class COpApproxCur;
class CXMLDialog;
/////////////////////////////////////////////////////////////////////////////
// CDlagPproxgPolygon dialog

class CDlagPproxgPolygon : public CBCGPDialog
{
// Construction
public:
	CDlagPproxgPolygon(CWnd* pParent = NULL,COpApproxCur* lpopcheck=NULL );   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlagPproxgPolygon)
	enum { IDD = IDD_DIALOG_CHECK };
	CSliderCtrl	m_slide;
	double	m_tol_down;
	double	m_tol_up;
	int     m_pos;
	static int pos;
	static double down;
	static double up;
	COpApproxCur * m_lpoperatorcheck;
	//}}AFX_DATA
private:
	double m_numorgpts;
	double m_numnowpts;
	double m_precsion;


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlagPproxgPolygon)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
//}}AFX_VIRTUAL
public:
	double GetSlideValue();
	void   InvalidateInformation(BOOL bInavlidate);

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlagPproxgPolygon)
	afx_msg void OnNcDestroy();
	virtual BOOL OnInitDialog();
//	afx_msg void OnReleasedcaptureSliderPrecision(NMHDR* pNMHDR, LRESULT* pResult);
//	afx_msg void OnCustomdrawSliderPrecision(NMHDR* pNMHDR, LRESULT* pResult);
//	afx_msg void OnOutofmemorySliderPrecision(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnChangeInvalidateValue() ;
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGAPPROXGPOLYGON_H__1FBBC9D9_73B2_4250_A561_F5C3D12D6970__INCLUDED_)
